package com.activenetwork.smlite.testcase.events.createEvents.basics;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.annotations.Test;

import com.activenetwork.smlite.testcase.BaseCase;
import com.activenetwork.util.verification.gson.FailureAssertion;

public class Basics008 extends BaseCase {
	static final Logger logger = LoggerFactory.getLogger(Basics008.class);

	
	@Test(groups = "repair")
	public void Verify_location_suggest_list_items_be_all_put_in_alphabetical_order(){
		loginBusiness.login();
		
		logger.info("This is not implemented and Case needs refactoring.");
		
//		String searchContent = "sara";
//		EventsSnippet.gotoAddEventPage();
//		
//		WebElement eventLocation = IdentifierFactory.createUIElement("EventBasicSubview", "eventLocation");
//		eventLocation.clear();
//		eventLocation.sendKeys(searchContent);
//		EventBasicSubview instance = PageLoader.load(EventBasicSubview.class);
//		// waiting for AJAX loading
//		By by = By.cssSelector(".autotest-lookup-EventBasicSubview-event-locationref-displaystring div.nexus-lookup div.dropdown ul>li");
//		List<WebElement> existingLocations = webDriver.findElements(by);
//		for(WebElement elc : existingLocations){
//			WebElement link = elc.findElement(By.xpath("./a"));
//			System.out.println(link.getText().trim());
//		}
		
		loginBusiness.logout();
		FailureAssertion.pop(Basics008.class);
	}
}
